/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.material.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 物料类别Entity
 * @author jyangye
 * @version 2017-11-27
 */
public class FxMaterialkind extends DataEntity<FxMaterialkind> {
	
	private static final long serialVersionUID = 1L;
	private String materialkindid;		// materialkindid
	private String materialkindattr;		// materialkindattr
	private String materialkindcode;		// materialkindcode
	private String materialkindname;		// materialkindname
	private String materialkinddescription;		// materialkinddescription
	private String parentmaterialkindid;		// parentmaterialkindid
	
	public FxMaterialkind() {
		super();
	}

	public FxMaterialkind(String id){
		super(id);
	}

	@Length(min=1, max=32, message="materialkindid长度必须介于 1 和 32 之间")
	@ExcelField(title="materialkindid", align=2, sort=10)
	public String getMaterialkindid() {
		return materialkindid;
	}

	public void setMaterialkindid(String materialkindid) {
		this.materialkindid = materialkindid;
	}
	
	@Length(min=1, max=1, message="materialkindattr长度必须介于 1 和 1 之间")
	@ExcelField(title="materialkindattr", align=2, sort=20)
	public String getMaterialkindattr() {
		return materialkindattr;
	}

	public void setMaterialkindattr(String materialkindattr) {
		this.materialkindattr = materialkindattr;
	}
	
	@Length(min=1, max=20, message="materialkindcode长度必须介于 1 和 20 之间")
	@ExcelField(title="materialkindcode", align=2, sort=30)
	public String getMaterialkindcode() {
		return materialkindcode;
	}

	public void setMaterialkindcode(String materialkindcode) {
		this.materialkindcode = materialkindcode;
	}
	
	@Length(min=1, max=100, message="materialkindname长度必须介于 1 和 100 之间")
	@ExcelField(title="materialkindname", align=2, sort=40)
	public String getMaterialkindname() {
		return materialkindname;
	}

	public void setMaterialkindname(String materialkindname) {
		this.materialkindname = materialkindname;
	}
	
	@Length(min=0, max=500, message="materialkinddescription长度必须介于 0 和 500 之间")
	@ExcelField(title="materialkinddescription", align=2, sort=50)
	public String getMaterialkinddescription() {
		return materialkinddescription;
	}

	public void setMaterialkinddescription(String materialkinddescription) {
		this.materialkinddescription = materialkinddescription;
	}
	
	@Length(min=0, max=32, message="parentmaterialkindid长度必须介于 0 和 32 之间")
	@ExcelField(title="parentmaterialkindid", align=2, sort=60)
	public String getParentmaterialkindid() {
		return parentmaterialkindid;
	}

	public void setParentmaterialkindid(String parentmaterialkindid) {
		this.parentmaterialkindid = parentmaterialkindid;
	}
	
}